<template>
  <div class="sort">
    <div class="sort-title">字母排序</div>
    <ul class="sort-list">
      <li class="sort-item" v-for="(val,key) in cities" @click="changeSort(key)">{{key}}</li>
    </ul>
  </div>
</template>

<script>
	export default{
		props:['cities'],
    data(){
      return{}
    },
    methods:{
      changeSort(sortName){
        console.log(sortName)
      }
    }
	}
</script>

<style scope>
  .sort-title{
    font-size: .26rem;
    color: #212121;
    padding: .3rem;
  }
  .sort-list{
    background-color: #fff;
    font-size: .28rem;
    position: relative;
    overflow: hidden;

  }
  .sort-item{
    width: 16.6666%;
    text-align: center;
    height: .9rem;
    line-height: .9rem;
    float: left;
    color: #040404;
  }
</style>
